#ifndef __GAMEPLAY_H__
#define __GAMEPLAY_H__

#include "Sprites.h"
#include "DxGraphics.h"
#include "DxInput.h"
#include "GameState.h"
#include "Mario.h"
#include "GMap.h"
#include "MenuGamePlay.h"

#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <time.h>
#include <string.h>
#include <conio.h>

class CGamePlay:public CGameSate
{

private:
	static CGamePlay*	_instance;
	bool				_isPause;
	MenuGamePlay *		_menuGamePlay;
	bool				_gameLoad;
protected:
	CGamePlay(HWND hwnd);
public:
	static CGamePlay* Singleton(HWND hwnd);
	~CGamePlay();
	HWND				_hwnd;
	RECT				_source;
	CMap*				_mapManage;
	void Game_Load(bool);
	bool Game_Init();
	void Game_Run(HWND,DWORD);
	void Game_Update(DWORD);
	void Game_Reset();
	void Game_End();
	void Run();
	
};
#endif